package com.atguigu.gmall.order.vo;

import com.atguigu.gmall.user.entity.UserAddress;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author lfy
 * @Description 订单确认页数据
 * @create 2023-08-01 14:29
 */
@Data
public class OrderConfirmDataVo {

    //商品清单数据
    private List<Detail> detailArrayList;
    private Integer totalNum;
    //商品总价
    private BigDecimal totalAmount;
    //收货地址列表
    private List<UserAddress> userAddressList;

    //【有大用：1、对接第三方支付系统  2、防止订单的重复提交】
    //交易号；
    private String tradeNo;


    @Data
    public static class Detail {
        private Long skuId;
        private String imgUrl;
        private String skuName;
        private BigDecimal orderPrice;
        private Integer skuNum;
        private String hasStock;
    }
}
